//
//  RBSearchRankImgItemView.m
//  zhongzhenglu
//
//  Created by XL on 2022/7/11.
//

#import "RBSearchRankImgItemView.h"
#import "UIView+RBAdd.h"

@interface RBSearchRankImgItemView()

@property(nonatomic, strong)IBOutlet UIImageView *imgView;
@property(nonatomic, strong)IBOutlet UILabel *titleL;
@property(nonatomic, strong)IBOutlet UILabel *desL;

@end

@implementation RBSearchRankImgItemView

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self zoomSubViewsWithSelf];
}

//赋值
- (void)setBrowseModel:(RBSearchBrowseTopModel *)browseModel {
    _browseModel = browseModel;
    
    [self.imgView LC_setImageWithURL:browseModel.picurl];
    
    self.titleL.text = browseModel.good_name;
    self.desL.text = [NSString stringWithFormat:@"点击量:%@", browseModel.browse];
}
- (void)setSellModel:(RBSearchSellTopModel *)sellModel {
    _sellModel = sellModel;
    
    [self.imgView LC_setImageWithURL:sellModel.file];
    
    self.titleL.text = sellModel.goods_name;
    self.desL.text = [NSString stringWithFormat:@"销量:%@", sellModel.num];
}


@end
